package com.ruoyi.shopping.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 商品种类管理对象 commodity_category
 * 
 * @author fxy
 * @date 2024-08-13
 */
public class CommodityCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品种类ID */
    private Long id;

    /** 种类所属父类ID */
    @Excel(name = "种类所属父类ID")
    private Long allCategoriesId;

    /** 商品种类名称 */
    @Excel(name = "商品种类名称")
    private String type;

    /** 种类图片 */
    @Excel(name = "种类图片")
    private String image;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long displayOrder;

    /** 逻辑删除（0，未删除，1删除） */
    @Excel(name = "逻辑删除", readConverterExp = "0=，未删除，1删除")
    private Long del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAllCategoriesId(Long allCategoriesId) 
    {
        this.allCategoriesId = allCategoriesId;
    }

    public Long getAllCategoriesId() 
    {
        return allCategoriesId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setDisplayOrder(Long displayOrder) 
    {
        this.displayOrder = displayOrder;
    }

    public Long getDisplayOrder() 
    {
        return displayOrder;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("allCategoriesId", getAllCategoriesId())
            .append("type", getType())
            .append("image", getImage())
            .append("displayOrder", getDisplayOrder())
            .append("del", getDel())
            .toString();
    }
}
